﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AgileDashboard.controls
{
    public partial class DynamicControlLoader : System.Web.UI.UserControl
    {
        public int Width;
        public int Height;
        public string UserControlPath;
        public string Params;
        public string CssClass;

        protected void Page_Load(object sender, EventArgs e)
        {
            DynamicPlaceholder.Style.Value = String.Format("width:{0}px;height:{1}px;", Width, Height);
            if (CssClass != null)
            {
                DynamicPlaceholder.Attributes.Add("class", CssClass);
            }

        }


    }
}